.class public abstract Les/gn;
.super Ljava/lang/Object;
.source "BaseGroup.java"


# instance fields
.field private a:I

.field private b:I

.field c:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Les/pm;",
            ">;"
        }
    .end annotation
.end field

.field private d:Z

.field protected e:Z


# direct methods
.method public constructor <init>(II)V
    .locals 1
    .param p1    # I
        .annotation build Landroidx/annotation/DrawableRes;
        .end annotation
    .end param
    .param p2    # I
        .annotation build Landroidx/annotation/StringRes;
        .end annotation
    .end param

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x0

    .line 2
    iput-boolean v0, p0, Les/gn;->d:Z

    .line 3
    iput-boolean v0, p0, Les/gn;->e:Z

    .line 4
    iput p1, p0, Les/gn;->a:I

    .line 5
    iput p2, p0, Les/gn;->b:I

    return-void
.end method


# virtual methods
.method public a()V
    .locals 0

    return-void
.end method

.method public a(Z)V
    .locals 0

    .line 1
    iput-boolean p1, p0, Les/gn;->e:Z

    return-void
.end method

.method public b(Z)V
    .locals 0

    .line 1
    iput-boolean p1, p0, Les/gn;->d:Z

    return-void
.end method

.method public b()Z
    .locals 5

    .line 2
    invoke-static {}, Les/b00;->q()Les/b00;

    move-result-object v0

    invoke-virtual {v0}, Les/b00;->i()Z

    move-result v0

    const/4 v1, 0x1

    if-nez v0, :cond_0

    .line 3
    iput-boolean v1, p0, Les/gn;->d:Z

    return v1

    .line 4
    :cond_0
    invoke-static {}, Lcom/estrongs/android/pop/app/leftnavigation/d0;->c()Lcom/estrongs/android/pop/app/leftnavigation/d0;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/pop/app/leftnavigation/d0;->b()Lorg/json/JSONObject;

    move-result-object v0

    if-nez v0, :cond_1

    .line 5
    iput-boolean v1, p0, Les/gn;->d:Z

    return v1

    .line 6
    :cond_1
    invoke-virtual {p0}, Les/gn;->i()I

    move-result v2

    if-ne v1, v2, :cond_9

    invoke-virtual {p0}, Les/gn;->e()Ljava/lang/String;

    move-result-object v2

    const-string v3, "Favorite"

    invoke-virtual {v3, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_9

    .line 7
    invoke-virtual {p0}, Les/gn;->e()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_3

    .line 8
    iget-object v0, p0, Les/gn;->c:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_2

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Les/pm;

    .line 9
    invoke-virtual {v2, v1}, Les/pm;->a(Z)V

    goto :goto_0

    .line 10
    :cond_2
    iput-boolean v1, p0, Les/gn;->d:Z

    return v1

    .line 11
    :cond_3
    iget-object v0, p0, Les/gn;->c:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    const/4 v2, 0x0

    if-nez v0, :cond_4

    .line 12
    iput-boolean v2, p0, Les/gn;->d:Z

    return v2

    .line 13
    :cond_4
    iget-object v0, p0, Les/gn;->c:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    const/4 v3, 0x0

    :cond_5
    :goto_1
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v4

    if-eqz v4, :cond_6

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Les/pm;

    .line 14
    invoke-virtual {v4}, Les/pm;->a()Z

    move-result v4

    if-nez v4, :cond_5

    add-int/lit8 v3, v3, 0x1

    goto :goto_1

    :cond_6
    if-nez v3, :cond_7

    const/4 v0, 0x1

    goto :goto_2

    :cond_7
    const/4 v0, 0x0

    .line 15
    :goto_2
    iput-boolean v0, p0, Les/gn;->d:Z

    .line 16
    iget-object v0, p0, Les/gn;->c:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-le v0, v3, :cond_8

    goto :goto_3

    :cond_8
    const/4 v1, 0x0

    :goto_3
    return v1

    .line 17
    :cond_9
    invoke-virtual {p0}, Les/gn;->e()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    xor-int/2addr v0, v1

    iput-boolean v0, p0, Les/gn;->d:Z

    return v0
.end method

.method public abstract c()V
.end method

.method public d()Ljava/util/List;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "Les/pm;",
            ">;"
        }
    .end annotation

    .line 1
    iget-object v0, p0, Les/gn;->c:Ljava/util/List;

    if-nez v0, :cond_0

    .line 2
    invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;

    move-result-object v0

    :cond_0
    return-object v0
.end method

.method public abstract e()Ljava/lang/String;
.end method

.method public f()I
    .locals 1

    .line 1
    iget v0, p0, Les/gn;->a:I

    return v0
.end method

.method public g()Ljava/lang/String;
    .locals 1

    const/4 v0, 0x0

    return-object v0
.end method

.method public h()Ljava/lang/String;
    .locals 2

    .line 1
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/pop/FexApplication;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    iget v1, p0, Les/gn;->b:I

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public abstract i()I
.end method

.method public j()Z
    .locals 1

    const/4 v0, 0x1

    return v0
.end method

.method public k()Z
    .locals 1

    .line 1
    iget-boolean v0, p0, Les/gn;->e:Z

    return v0
.end method

.method public l()Z
    .locals 1

    .line 1
    iget-boolean v0, p0, Les/gn;->d:Z

    return v0
.end method
